package com.weizhu.swufer.core.client;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class MockServiceManager {

    private static volatile MockServiceManager instance;

    private Map<String,Object> mockServiceMap;

    private MockServiceManager(){
        mockServiceMap = new ConcurrentHashMap<>();
    }

    public static MockServiceManager getInstance(){
        if (instance == null){
            synchronized (MockServiceManager.class){
                if (instance == null){
                    instance = new MockServiceManager();
                }
            }
        }
        return instance;
    }

    public Map<String, Object> getMockServiceMap() {
        return mockServiceMap;
    }
}
